﻿using System.Collections.Generic;
using System.Data;
namespace Log.Recorder.Entity
{
    /// <summary>
    /// 分页日志数据
    /// </summary>
    public class PagingLogData
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int pagenumber { get; set; }
        /// <summary>
        /// 每页大小
        /// </summary>
        public int pagesize { get; set; }
        /// <summary>
        /// 总数据条数
        /// </summary>
        public int total { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public DataTable rows { get; set; }

    }
    /// <summary>
    /// 分页数据（泛型）
    /// </summary>
    /// <typeparam name="T">泛型</typeparam>
    public class PagingLogData<T> where T : class
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int pagenumber { get; set; }
        /// <summary>
        /// 每页大小
        /// </summary>
        public int pagesize { get; set; }
        /// <summary>
        /// 总数据条数
        /// </summary>
        public int total { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public List<T> rows { get; set; }

    }

}
